package com.qnkf.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author: QIK
 * @CreateDate: 2019/4/22 20:13
 */
@Component
@Data
@RefreshScope
public class TaskConfig {
    @Value("${task.core_pool_size}")
    private int corePoolSize;
    @Value("${task.max_pool_size}")
    private int maxPoolSize;
    @Value("${task.name_prefix}")
    private String namePrefix;
    @Value("${task.queue_capacity}")
    private int queueCapacity;
    @Value("${task.keep_alive_seconds}")
    private int keepAliveSeconds;
}
